package entity;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@lombok.Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserInfo {
    private int userID;
    private String userName;
    private String passWord;
    private int userRoot;
    private String userSex;
    private Date createTime;
    private Date updateTime;
    private int delStatus;


    public UserInfo(String userName, String passWord) {
        this.userName = userName;
        this.passWord = passWord;
    }

    public UserInfo(int userID, String userName, String passWord, String userSex) {
        this.userID = userID;
        this.userName = userName;
        this.passWord = passWord;
        this.userSex = userSex;
    }

    public UserInfo(String userName, String passWord, int delStatus) {
        this.userName = userName;
        this.passWord = passWord;
        this.delStatus = delStatus;
    }

    public UserInfo(int userID, String userName, String passWord, String userSex, Date createTime, Date updateTime) {
        this.userID = userID;
        this.userName = userName;
        this.passWord = passWord;
        this.userSex = userSex;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
